package com.metaverse.backend.web;

import com.metaverse.backend.domain.RoomLog;
import com.metaverse.backend.dto.PageQuery;
import com.metaverse.backend.service.RoomLogService;
import lombok.AllArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 对局记录
 */
@AllArgsConstructor
@RestController
@RequestMapping("roomLog")
public class RoomLogController extends BaseController {

    private RoomLogService roomLogService;


    @PostMapping("/all")
    public Page<RoomLog> all(@RequestBody PageQuery pageQuery) {
        return roomLogService.all(pageQuery);
    }

}
